home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / source / thesource6.dms / thesource6.adf / Source / StartUpCode / StartUpCode.lha / StartUp.i next >
Encoding:
Text File  |  1993-05-20  |  1.1 KB  |  37 lines

  1. * $VER: StartUp_i 4.00
  2. *
  3. * Use this include file only if you specified linkable code
  4. * in StartUp.s, otherwise you will get lots of duplicate
  5. * labels.
  6. *
  7. ***********************************************************
  8. * Structs
  9. ***********************************************************
  10.  
  11.         rsreset
  12. gfx_base:    rs.l    1        ; pointer to graphics base
  13.         rs.l    2        ; reserved.  don't use. :)
  14. VectorBase:    rs.l    1        ; pointer to the Vector Base
  15. ntsc:        rs.b    1        ; 0 = pal, 1 = ntsc
  16. AGA:        rs.b    1        ; 0 = ESC/OCS, 1 = AGA
  17. SYS_SIZE:    rs.b    0        ; size of the struct
  18.  
  19. ***********************************************************
  20. * Functions
  21. ***********************************************************
  22.  
  23. ; Synopsis:
  24. ;  success = TakeSystem(SystemSave)
  25. ;     d0                    a4
  26.         xref    TakeSystem
  27. ; TakeSystem also returns Custom+2 in a5.  It will also fill in the correct
  28. ; fields in SystemSave.  SystemSave is a block of memory of size SYS_SIZE.
  29. ; The fields that will be filled in will depend on the flags set in StartUp.s
  30. ; at assemble time.
  31.  
  32. ; Synopsis:
  33. ;  success = RestoreSystem(SystemSave)
  34. ;     d0                    a4
  35.         xref    RestoreSystem
  36. ; RestoreSystem will always return a zero in d0.
  37.